package com.lokyiu.tutorial.java.exerisce1;

import java.util.List;

public class City {
	private List<Dist> dists;
	private String name;
	private int population;
	
	public City(String name,List<Dist> dists){
		this.name=name;
		for(Dist dist : dists){
			this.population  += dist.getPopulation();
		}
	}
	
	public String getName() {
		return name;
	}

	public int getPopulation() {
		return population;
	}

	public void setPopulation(List<Dist> dists) {

	}

	public List<Dist> getDists(){
		return this.dists;
	}
	
}
